# 运算符
a = 10
b = 20

## 算数运算符

# print(a + b)
# print(a - b)
# print(a * b)
# print(a / b)
# print(a % b)    # 取余
# print(a // b)   # 取整
# print(a ** b)   # 幂等

## 比较运算
## 最终产生的值为bool

print(a > b)
print(a < b)
print(a == b)   # 比较的是两边的值是否相等
print(a != b)
print(a >= b)
print(a <= b)

i = a <= b
print("i:", i)

## 赋值运算符

# a = b
# print(a)
# a += b
# # a = a + b
# print(a)
# a -= b
# print(a)
# a *= b
# print(a)
# a /= b
# print(a)
# a %= b
# print(a)
# a //= b
# print(a)
# a **= b
# print(a)

## 逻辑运算符

## and or not

# print(10 > 2 and 20 < 2)
# print(10 > 2 or 20 < 2)
# print(not 10 > 2)

# 身份运算
# is

# a = None
# print(a is None)    # 判断的是内存地址是否相同
# print(a is not True)

# i = 1
# p = 1
# print(i is p)